@extends('admin.components.my')
@section('content')
    <h1>文章添加</h1>
    {!! Form::open(['url'=>'/article/store']) !!}
        <div class="form-group">
            {!! Form::label('标题') !!}
            {!! Form::text('title',null,['class'=>'form-control']) !!}
            @if($errors->has('title'))
                <li class="list-group-item list-group-item-danger">{{ $errors->first('title')}}</li>
            @endif
        </div>
        <div class="form-group">
            {!! Form::label('短标题') !!}
            {!! Form::text('shorttitle',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('关键字') !!}
            {!! Form::text('keywords',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('描述') !!}
            {!! Form::textarea('description',null,['class'=>'form-control']) !!}
        </div>
        <div class="form-group">
            {!! Form::label('文章内容') !!}
            {!! Form::textarea('content',null,['class'=>'form-control']) !!}
            @if($errors->has('title'))
                <li class="list-group-item list-group-item-danger">{{ $errors->first('content')}}</li>
            @endif
        </div>
        <div class="form-group">
            {!! Form::label('作者') !!}
            {!! Form::text('writer',null,['class'=>'form-control']) !!}
        </div>
        {!! Form::submit('发表文章',['class'=>'btn btn-primary form-control']) !!}
    {!! Form::close() !!}
@stop